﻿namespace EyeOpen.Security.Server.BootStrapper
{
    using EyeOpen.Data;
    using EyeOpen.Dependency;

    public class SecurityDatabaseFactory
    {
        public void CreateDatabase()
        {
            DependencyContainerService
                .Configure<SecurityContainerConfigurator>();

            var securityDataContext = 
                DependencyContainerService
                    .Instance
                    .Resolve<IDatabase>(SecurityContainerConfigurator.SecurityConfigurationName);

            securityDataContext.CreateDataBase();
        }
    }
}